package jp.co.recruit_lifestyle.ohos.widget;

import ohos.agp.window.service.DisplayManager;
import ohos.app.Context;

public class DisplayUtil {

    public static boolean isOver600dp(Context context) {
        float widthPixels = DisplayManager.getInstance().getDefaultDisplay(context).get().getAttributes().densityPixels;
        int density = DisplayManager.getInstance().getDefaultDisplay(context).get().getAttributes().densityDpi;
        return widthPixels / density >= 600;
    }
}
